<?php
class homepageloginWidget extends Widget {

	public function render(){
		session_start();
		$urldata = array();
		$urldata['login'] = $this->create_url('user/login');
		$urldata['logout'] = $this->create_url('user/logout');
		$urldata['setting'] = $this->create_url('user/setting');
		$urldata['register'] = $this->create_url('user/register');
		$this->assign($urldata);


		if($_SESSION['userid'] ==1 )
			$this->display();
		else
			$this->display('homepagelogout');
	}
}